import { hapTasks } from '@ohos/hvigor-ohos-plugin';
import { getNode, HvigorNode, HvigorTask } from '@ohos/hvigor';
import { exec } from 'child_process';

// 获取当前hvigorNode节点对象
const node = getNode(__filename);

// 注册Task
node.registerTask({
  name: 'customTask',
  run() {
    exec('mkdir aaa.txt', () => {
      console.info('zqf show data')
    })
  }
});

export default {
  system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
  plugins: []         /* Custom plugin to extend the functionality of Hvigor. */
}
